package cn.kgc.crowd1048.fundingadmin.controller;


import cn.kgc.crowd1048.fundingadmin.entity.TAdmin;
import cn.kgc.crowd1048.fundingadmin.service.TAdminService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author szz
 * @since 2024-04-17
 */
@RestController
@RequestMapping("/fundingadmin/t-admin")
public class TAdminController {

    @Resource
    TAdminService tAdminService;

    @GetMapping("/selectAll")
    public List<TAdmin> selectAll(){
        List<TAdmin> select = tAdminService.select();
        for (TAdmin tAdmin : select) {
            System.out.println(tAdmin);
        }
        return select;
    }


}

